package com.chapter6.jiekou.demo4;

import com.chapter6.jiekou.demo1.Animal;

public class Trainer {
    private Animal animal;

    public Trainer(Animal animal){
        this.animal=animal;
    }
    public void train(){
        animal.eat();
        animal.sleep();
    }
}
